package com.hawk.eye.server.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hawk.eye.framework.core.domain.api.CommonEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 【请填写功能名称】对象 hawk_eye_white_list
 *
 * @author salad
 * @date 2023-10-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hawk_eye_white_list")
public class WhiteList extends CommonEntity {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 匹配关键字，支持正则，可以匹配类路径或异常
     */
    private String matchKeyword;

    /**
     * 服务ID
     */
    private Long serviceId;

    /**
     * 失效时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime failureTime;


}
